//
//  ViewController.swift
//  滚动菜单
//
//  Created by admin on 16/1/28.
//  Copyright © 2016年 jin. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        let menu = NSBundle.mainBundle().loadNibNamed("Menu", owner: nil, options: nil).last as! Menu
        menu.center.y = UIScreen.mainScreen().bounds.size.height * 0.5
        menu.addMenu("menu_btn_call")
        menu.addMenu("menu_btn_cheyou")
        menu.addMenu("menu_btn_tixing")
        self.view.addSubview(menu)
    }
}

